package tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import packageServer.Erbivoro;

public class TestErbivoro {

	private Erbivoro e;
	
	@Before
	public void setUp() throws Exception {
		e=new Erbivoro(0);
	}

	@After
	public void tearDown() throws Exception {
		e=null;
	}

	@Test
	public void testCalcolaForza() {
		assertEquals(e.getDimensione()*e.getEnergia(), e.calcolaForza());
	}

	@Test
	public void testCarnivoro() {
		assertNotNull(e);
	}

}
